<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>测试文件上传下载</title>
</head>
<body>
    <a th:href="@{/testDown}">下载</a>
    <form th:action="@{/testUp}" method="post" enctype="multipart/form-data">
        图片: <input type="file" name="photo"><br>
        <input type="submit">
    </form>

</body>
</html>